<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>

<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<title>后台管理</title>
</head>
<body class="body_ifm">
<div class="infoboxp">
<div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
<div class="admin_new_tip_list_cont">
<div class="admin_new_tip_list">发布宣讲会，更全面的宣传，更快的招聘效果。</div>
</div>
</div>

<div class="clear"></div>

<div class="admin_new_search_box"> 
  <form action="index.php" name="myform" method="get">
      <input name="m" value="admin_school_xjh" type="hidden"/>
      <input type="hidden" name="status" value="{yun:}$smarty.get.status{/yun}"/>
      <div class="admin_new_search_name">搜索类型：</div>
      <div class="admin_Filter_text formselect"  did='dtype'>
        <input type="button" value="{yun:}if $smarty.get.type=='1'{/yun}详细地点{yun:}else{/yun}详细地点{yun:}/if{/yun}" class="admin_new_select_text"  id="btype">
        <input type="hidden" id='type' value="{yun:}if $smarty.get.type=='1'{/yun}{yun:}$smarty.get.type{/yun}{yun:}else{/yun}1{yun:}/if{/yun}" name='type'>
        <div class="admin_Filter_text_box" style="display:none" id='dtype'>
          <ul>
            <li><a href="javascript:void(0)" onClick="formselect('1','type','详细地点')">详细地点</a></li>
          </ul>
        </div>
      </div>
      <input class="admin_Filter_search" type="text" name="keyword" maxlength="25">
      <input class="admin_Filter_bth" type="submit" name="news_search" value="搜索"/> 
	 <a href="javascript:void(0)" onclick="$('.admin_screenlist_box').toggle();"   class="admin_new_search_gj">高级搜索</a>
     </form>
    {yun:}include file="admin/admin_search.htm"{/yun}
  </div>
<div class="clear"></div> 

  <div class="table-list">
    <div class="admin_table_border">
      <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
      <form action="index.php?m=admin_school_xjh&c=del" name="myform" method="post" target="supportiframe" id='myform'>
        <table width="100%">
          <thead>
            <tr class="admin_table_top">
              <th style="width:20px;">
              <label for="chkall"><input type="checkbox" id='chkAll' onclick='CheckAll(this.form)' /></label>
              </th>
              <th>{yun:}if $smarty.get.t=="id" && $smarty.get.order=="asc"{/yun}<a href="{yun:}searchurl order=desc t=id m=admin_school_xjh untype='order,t'{/yun}">编号<img src="images/sanj.jpg"/></a>{yun:}else{/yun}<a href="{yun:}searchurl order=asc t=id m=admin_school_xjh untype='order,t'{/yun}">编号<img src="images/sanj2.jpg"/></a>{yun:}/if{/yun}</th>
              <th>{yun:}if $smarty.get.t=="stime" && $smarty.get.order=="asc"{/yun}<a href="{yun:}searchurl order=desc t=stime m=admin_school_xjh untype='order,t'{/yun}">宣讲时间<img src="images/sanj.jpg"/></a>{yun:}else{/yun}<a href="{yun:}searchurl order=asc t=stime m=admin_school_xjh untype='order,t'{/yun}">宣讲时间<img src="images/sanj2.jpg"/></a>{yun:}/if{/yun}</th>
              <th>宣讲城市 </th>
              <th align="left">宣讲学校</th>
              <th width="200" align="left">详细地点</th>
              <th align="left">发布人</th>
              <th>{yun:}if $smarty.get.t=="ctime" && $smarty.get.order=="asc"{/yun}<a href="{yun:}searchurl order=desc t=ctime m=admin_school_xjh untype='order,t'{/yun}">发布时间<img src="images/sanj.jpg"/></a>{yun:}else{/yun}<a href="{yun:}searchurl order=asc t=ctime m=admin_school_xjh untype='order,t'{/yun}">发布时间<img src="images/sanj2.jpg"/></a>{yun:}/if{/yun}</th>
              <th>{yun:}if $smarty.get.t=="atnnum" && $smarty.get.order=="asc"{/yun}<a href="{yun:}searchurl order=desc t=atnnum m=admin_school_xjh untype='order,t'{/yun}">关注人数<img src="images/sanj.jpg"/></a>{yun:}else{/yun}<a href="{yun:}searchurl order=asc t=atnnum m=admin_school_xjh untype='order,t'{/yun}">关注人数<img src="images/sanj2.jpg"/></a>{yun:}/if{/yun}</th>
              <th>审核状态</th>
              <th>状态</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
          
          {yun:}foreach item=v key=key from=$rows{/yun}
          <tr align="center" id="list{yun:}$v.id{/yun}">
            <td style="width:20px;"><input type="checkbox" value="{yun:}$v.id{/yun}" class="check_all" name='del[]' onclick='unselectall()' rel="del_chk" /></td>
            <td>{yun:}$v.id{/yun}</td>
            <td>{yun:}$v.stime|date_format:'%Y-%m-%d %H:%M'{/yun}-{yun:}$v.etime|date_format:'%H:%M'{/yun}</td>
            <td>{yun:}$city_name[$v.provinceid]{/yun}-{yun:}$city_name[$v.cityid]{/yun}</td>
            <td align="left">{yun:}$v.sch_name{/yun}</td>
            <td align="left">{yun:}$v.address{/yun}</td>
            <td align="left">{yun:}$v.com_name{/yun}</td>
            <td>{yun:}$v.ctime|date_format:'%Y-%m-%d'{/yun}</td>
            <td>{yun:}if $v.atnnum{/yun}{yun:}$v.atnnum{/yun}人<p><a href="index.php?m=admin_school_xjh&c=listxjh&id={yun:}$v.id{/yun}">查看关注</p>{yun:}else{/yun}0人<p>暂无关注</p>{yun:}/if{/yun}</td>
            <td>{yun:}if $v.status=='1'{/yun}<span class="admin_com_Audited">已审核</span>{yun:}elseif $v.status=='2'{/yun}<span class="admin_com_tg">未通过</span>{yun:}else{/yun}<span class="admin_com_noAudited">未审核</span>{yun:}/if{/yun}</td>
            <td>{yun:}if $v.etime lt time(){/yun}<font color="red">已过期</font>{yun:}elseif $v.etime gt time()&& $v.stime lt time(){/yun}举办中{yun:}else{/yun}待举办{yun:}/if{/yun}</td>
            <td>
            <a href="javascript:;" status="{yun:}$v.status{/yun}" pid="{yun:}$v.id{/yun}" class="status admin_new_c_bth admin_new_c_bthsh">审核</a>
           <a href="index.php?m=admin_school_xjh&c=add&id={yun:}$v.id{/yun}"class="admin_new_c_bth ">修改</a>
            <a href="javascript:void(0)" onClick="layer_del('确定要删除？','index.php?m=admin_school_xjh&c=del&id={yun:}$v.id{/yun}');"class="admin_new_c_bth admin_new_c_bth_sc">删除</a></td>
          </tr>
          {yun:}/foreach{/yun}
          <tr style="background: #f1f1f1;">
            <td align="center"><input type="checkbox" id='chkAll2' onclick='CheckAll2(this.form)' /></td>
            <td colspan="2" >
            <label for="chkAll2">全选</label>&nbsp;
            <input class="admin_button"  type="button" name="delsub" value="删除所选"  onclick="return really('del[]')"/>
			</td>
            <td colspan="9" class="digg">{yun:}$pagenav{/yun}</td>
          </tr>
          </tbody>
          
        </table>
		<input type="hidden" name="pytoken"  id="pytoken" value="{yun:}$pytoken{/yun}">
      </form>
    </div>
  </div>
</div>

<div id="info_div"  style="display:none; width: 390px; ">
	<div class="" style=" margin-top:10px; "  >
	<form class="layui-form" action="index.php?m=admin_school_xjh&c=status" target="supportiframe" method="post" id="formstatus">
	<table cellspacing='1' cellpadding='1' class="admin_examine_table">
		<tr>
			<th width="80">审核操作：</th>
			<td align="left">
				<div class="layui-form-item">
				<div class="layui-input-block">
					<input name="status" id="state0" value="0" title="未审核" type="radio"/>
					<input name="status" id="state1" value="1" title="正常" type="radio"/>
					<input name="status" id="state2" value="2" title="未通过" type="radio"/>
				</div>
				</div>
			</td>
		</tr>
		<tr>
			<th>审核说明：</th>
			<td align="left"> <textarea id="alertcontent" name="lock_info" class="admin_explain_textarea"></textarea> </td>
		</tr>
        <tr>
			<td colspan='2' align="center">
			<input type="submit"  value='确认' class="admin_examine_bth">
            <input type="button" id="zxxCancelBtn" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
			</td>
        </tr>
		<input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
		<input name="pid" value="0" type="hidden">
	</table>
    </form>
  </div>
</div>
<script type="text/javascript">
  layui.use(['layer', 'form'], function(){
    var layer = layui.layer
    ,form = layui.form
    ,$ = layui.$;
  });
$(function(){
	$(".status").click(function(){
		$("input[name=pid]").val($(this).attr("pid"));
		var uid=$(this).attr("pid");
		var status=$(this).attr("status");
		$("#state"+status).attr("checked",true);
		layui.use(['form'],function(){
			var form = layui.form;
			form.render();
		});
		$("input[name=uid]").val(uid);
		$.get("index.php?m=admin_school_xjh&c=lockinfo&id="+uid,function(msg){
			$("#alertcontent").val($.trim(msg));
			$.layer({
				type : 1,
				title :'宣讲会审核', 
				closeBtn : [0 , true],
				border : [10 , 0.3 , '#000', true],
				area : ['390px','240px'],
				page : {dom :"#info_div"}
			});
		});
	});
});
</script>
</body>
</html>
